package com.echo.model;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

import java.io.Serializable;

/**
 * Created by alex on 2016/5/12.
 */
@Table(name="music")
public class Music extends Model implements Serializable{
    @Column(name="_id",unique=true, onUniqueConflict = Column.ConflictAction.REPLACE)
    private  long id;
    @Column(name="name")
    private  String name;
    @Column(name="singer")
    private  String singer;
    @Column(name="duration")
    private  int duration;
    @Column(name="user_id")
    private  long userId;
    @Column(name="path")
    private String path;
    @Column(name="size")
    private long size;

    public long getid() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }
}
